package tPerson.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tPerson.entity.TPersonWork;
import tPerson.mapper.TPersonWorkMapper;
import tPerson.service.TPersonWorkService;

import java.util.List;

@Service
public class TPersonWorkServiceImpl implements TPersonWorkService {

    @Autowired
    private TPersonWorkMapper tPersonWorkMapper;

    @Override
    public int insert(TPersonWork tPersonWork) {
        return tPersonWorkMapper.insert(tPersonWork);
    }

    @Override
    public int delete(String workID) {
        return tPersonWorkMapper.delete(workID);
    }

    @Override
    public int update(TPersonWork tPersonWork) {
        return tPersonWorkMapper.update(tPersonWork);
    }

    @Override
    public List<TPersonWork> getList(String personID) {
        return tPersonWorkMapper.getList(personID);
    }
}
